import java.util.Scanner;

public class Main3 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        //write code here......
        int count=1;
        for (int i = 0; i < num; i++) {
            if(num/10!=0){
                num=num/10;
                count++;
            }
        }
        System.out.println(count);
    }
}